
package vue;

import java.awt.*;

import java.awt.event.*;
import java.awt.image.*;
import java.lang.*;

import javax.swing.*;

//import vue.AffichePrincipalePlateau.ImagePanel;

public class West extends JPanel{
	
	private  JLabel score = new JLabel();
	private  JLabel scoreB = new JLabel();
	private  JLabel force = new JLabel();
	private  JLabel forceB = new JLabel();
	private JPanel pscore, pscoreB,pforceB,pforce;
	//private int vit;
	
	public West() {
	this.setPreferredSize(new Dimension(200,400));
	
	
	
	pscore = new JPanel();
	pscore.setPreferredSize(new Dimension(190,50));
	pscore.setBorder(BorderFactory.createTitledBorder("Joueur Bleu-Vitalité"));
	pscore.add(score);
	
	pscoreB = new JPanel();
	pscoreB.setPreferredSize(new Dimension(190,50));
	pscoreB.setBorder(BorderFactory.createTitledBorder("Joueur Rouge-Vitalité"));
	pscoreB.add(scoreB);
	
	pforce = new JPanel();
	pforce.setPreferredSize(new Dimension(190,50));
	pforce.setBorder(BorderFactory.createTitledBorder("Joueur Bleu-Score"));
	pforce.add(force);
	
	pforceB = new JPanel();
	pforceB.setPreferredSize(new Dimension(190,50));
	pforceB.setBorder(BorderFactory.createTitledBorder("Joueur Rouge-Score"));
	pforceB.add(forceB);
	
	this.add(pscore);
	this.add(pscoreB);
	this.add(pforceB);
	this.add(pforce);
	
	
	}
	
	 
	
	public void setVitalite1(int i) {
		this.score.setText(""+i);
	}
	
	public  void setVitalite2(int i) {
		this.scoreB.setText(""+i);
	}

}
